using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace DataLayer.Model
{
    [Table("Administrator")]
    public class Administrator: User
    {
        public string Login { get; set; }

        public string Password { get; set; }

        public DateTime StartDate { get; set; }

        public DateTime? EndDate { get; set; }

        public virtual ICollection<Player> Players { get; set; }

        public virtual ICollection<SetTopBox> SetTopBoxes { get; set; }

        public Administrator()
        {
            this.Players = new List<Player>();
            this.SetTopBoxes = new List<SetTopBox>();
        }
    }
}
